<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="searchList" class="nonEntry">
	<legend><small>${categoryName }</small></legend>
	<!--<h3>'연습장'에 해당되는 글 19건</h3>-->
<%-- 	<ol>
		<c:forEach var="board" items="${boards}">
			<li>
				
				
				<span class="content">${board.writer}</span>
				<span class="cnt"></span>
			</li>
		</c:forEach>
		<li>
			<span class="new-write">
				<a href="${pageContext.request.contextPath}/writeAndUpdateForm.do?category=${category}">글쓰기</a>
			</span>
		</li>
	</ol> --%>
	<table class="table table-hover bottom-border">
		  <caption class="bottom-border"></caption>
		  <thead>
		    <tr>
		      <th style="width: 30px;">번호</th>
		      <th>제목</th>
		      <th style="width: 100px;">글쓴이</th>
		      <th style="width: 200px;">날짜</th>
		      <th style="width: 100px;">조회수</th>
		    </tr>
		  </thead>
		  <tbody>
	 		<c:forEach var="board" items="${boards}">
			    <tr>
			      <td>${board.boardSeq}</td>
			      <td><a href="${pageContext.request.contextPath}/boardContent.do?boardSeq=${board.boardSeq}&categoryCode=${categoryCode}" class="ListTit">${board.title}</a></td>
			      <td>${board.writer}</td>
			      <td>${board.regDate}</td>
 				  <td>${board.count}</td>
			    </tr>
		  	</c:forEach>
		  </tbody>
	</table>
	<%-- <c:forEach var="board" items="${boards}">
		<div class="articleList">
			<div class="rightList">
				<p class="title">
					<a href="${pageContext.request.contextPath}/boardContent.do?boardSeq=${board.boardSeq}&categoryCode=${categoryCode}" class="ListTit">${board.title}</a>
					<span>[${board.regDate}]</span>
				</p>
				<p class="text">${board.writer}</p>
			</div>
		</div>
	</c:forEach> --%>
	<span class="new-write">
		<a class="btn btn-primary" href="${pageContext.request.contextPath}/writeAndUpdateForm.do?categoryCode=${categoryCode}">글쓰기</a>
	</span>
</div>
